﻿using Abp.AutoMapper;
using Magicodes.WeChat.User.Dto;

namespace Magicodes.WeChat.Web.Models.WeChatUsers
{
    [AutoMapFrom(typeof(GetWeChatUserForEditOutput))]
    public class CreateOrEditWeChatUserModalViewModel : GetWeChatUserForEditOutput
    {
        public bool IsEditMode => !string.IsNullOrEmpty(WeChatUser.Id);

        public CreateOrEditWeChatUserModalViewModel(GetWeChatUserForEditOutput output)
        {
            output.MapTo(this);
        }
    }
}